package com.xbongbong.paas.manager.feign;

import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.opportunity.pojo.dto.OpportunityStageSyncDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "pro-web-sync", contextId = "stageSyncFeignClient")
public interface StageSyncFeignClient {

    @RequestMapping(value = "/pro/v1/stage/sync/opportunity/stageSyncOpportunityData", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<BaseVO> stageSyncOpportunityData(@RequestBody OpportunityStageSyncDTO stageSyncDTO, @RequestParam("lang") String lang);
}
